package com.yishusmt.mobsmt.controller;

import com.yishusmt.mobsmt.dto.request.PhoneDetailsReq;
import com.yishusmt.mobsmt.service.FacilityService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;

/**
 * 获取设备信息
 *
 * @author zhangyi
 * @date 2018/8/10 16:36
 */
@Controller
@Slf4j
@Api("获取设备信息")
@RequestMapping("/phoneDetails")
public class FacilityController {

    @Resource
    private FacilityService facilityService;


    /**
     * 获取手机设备信息
     *
     * @param phoneDetailsReq
     */
    @PostMapping("/getFacility")
    @ApiOperation(value = "获取手机设备信息",httpMethod = "POST")
    public void getFacility(@RequestBody PhoneDetailsReq phoneDetailsReq){
        facilityService.getFacility(phoneDetailsReq);
    }
}
